package com.hk.dao;

import com.hk.model.OnlineMessage;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: KangWang
 * Date: 2021/5/20 15:52
 * State：在线留言数据持久层
 */
public class OnlineMessageDao {

    public List<OnlineMessage> onlineMessageList = new ArrayList<>(20);

//    新增留言
    public List<OnlineMessage> saveMessage(OnlineMessage onlineMessage) {
        onlineMessageList.add(onlineMessage);
        return onlineMessageList;
    }
}
